<?php
 require'pdo.php';
 $dsn="{$dbtype}:host={$host};dbname={$dbname}";
try{
	$pdo=new PDO($dsn,$username,$password);
	$createTime=time();
	$sql="INSERT result VALUES(4,'4',45,'5')";
	$num=$pdo->exec($sql);
	$insertID=$pdo->lastInsertId();
	if($num>0){
		print'成功添加';
	}
}catch(PDOException $e){
	die('操作失败'.$e->getMessage());
}